package com.yoda.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.yoda.dto.ArticleDTO;
import com.yoda.entity.YddArticle;
import com.yoda.result.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author itcast
 * @since 2023-05-15
 */
public interface IYddArticleService extends IService<YddArticle> {

    /**
     * 文章列表-分页
     * @return
     */

    public Result pageList(ArticleDTO articleDTO);

    /**
     * 文章添加
     * @return
     */

    public Result add( YddArticle yddArticle);

    /**
     * 根据id查询文章
     * @return
     */

    public Result getById( String id);


    /**
     * 修改文章
     * @return
     */

    public Result updateArticle( YddArticle yddArticle);

}
